Builder

class Builder

Constructors

Builder
Link copied to clipboard
open fun Builder()

Functions

build
Link copied to clipboard
open fun build(): MapOptions
constrainMode
Link copied to clipboard
open fun constrainMode(constrainMode: ConstrainMode): MapOptions.Builder
The map constrain mode.
contextMode
Link copied to clipboard
open fun contextMode(contextMode: ContextMode): MapOptions.Builder
The map context mode.
crossSourceCollisions
Link copied to clipboard
open fun crossSourceCollisions(crossSourceCollisions: Boolean): MapOptions.Builder
Specify whether to enable cross-source symbol collision detection or not.
glyphsRasterizationOptions
Link copied to clipboard
open fun glyphsRasterizationOptions(glyphsRasterizationOptions: GlyphsRasterizationOptions): MapOptions.Builder
Glyphs rasterization options to use for client-side text rendering.
optimizeForTerrain
Link copied to clipboard
open fun optimizeForTerrain(optimizeForTerrain: Boolean): MapOptions.Builder
With terrain on, if `true`, the map will render for performance priority, which may lead to layer reordering allowing to maximize performance (layers that are draped over terrain will be drawn first, including fill, line, background, hillshade and raster).
orientation
Link copied to clipboard
open fun orientation(orientation: NorthOrientation): MapOptions.Builder
The orientation of the Map.
pixelRatio
Link copied to clipboard
open fun pixelRatio(pixelRatio: Float): MapOptions.Builder
The custom pixel ratio.
size
Link copied to clipboard
open fun size(size: Size): MapOptions.Builder
The size to resize the map object and renderer backend.
viewportMode
Link copied to clipboard
open fun viewportMode(viewportMode: ViewportMode): MapOptions.Builder
The viewport mode.

Extensions

applyDefaultParams
Link copied to clipboard
fun MapOptions.Builder.applyDefaultParams(context: Context): MapOptions.Builder
Get a default MapOptions.Builder with reasterization mode GlyphsRasterizationMode#ALL_GLYPHS_RASTERIZED_LOCALLY